package com.cicc.beergamevirtualsimulationsystem.common.webSocket.message;

public abstract class AbstractJsonWebSocketMessage implements JsonWebSocketMessage {

    public static final String TYPE_FIELD = "type";

    private final String type;

    private final String message;

    protected AbstractJsonWebSocketMessage(String type,String message) {
        this.type = type;
        this.message = message;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getMessage() {
        return message;
    }
}